-
Notifications
You must be signed in to change notification settings - Fork 5
Recourse has to work with Recoursees that are not in the contact book #672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables recourse functionality to work with recoursees that are not present in the contact book by fetching past endorsees to validate and obtain recoursee data, and integrating nostr contact store for relay information.
- Modified recourse logic to use past endorsees instead of requiring contacts in the contact book
- Added nostr contact store integration to BillService for relay information
- Updated data structures to support full participant data in past endorsees
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
crates/bcr-ebill-wasm/src/data/bill.rs | Added conversion from BillIdentParticipant to LightBillIdentParticipantWeb |
crates/bcr-ebill-wasm/src/context.rs | Added nostr contact store to BillService initialization |
crates/bcr-ebill-wasm/src/api/bill.rs | Modified recourse logic to use past endorsees and nostr contacts |
crates/bcr-ebill-core/src/bill/mod.rs | Changed PastEndorsee field type to BillIdentParticipant |
crates/bcr-ebill-api/src/service/bill_service/test_utils.rs | Added MockNostrContactStore to test setup |
crates/bcr-ebill-api/src/service/bill_service/service.rs | Added nostr contact store integration to BillService |
crates/bcr-ebill-api/src/service/bill_service/mod.rs | Updated test expectations |
clippy.toml | Increased too-many-arguments threshold |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
0d42ed5
to
258f3e9
Compare
PR Code Suggestions ✨Explore these optional code suggestions:
|
@@ -1 +1 @@ | |||
too-many-arguments-threshold=14 | |||
too-many-arguments-threshold=200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have zero patience for dogmatic nonsense such as too-many-arguments-for-a-function
limits. 😅 This basically disables it globally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
until you get a warning at 200
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
User description
📝 Description
now
calls and a non-failing call on the function under testRelates to #422
✅ Checklist
Please ensure the following tasks are completed before requesting a review:
cargo fmt
.cargo clippy
.🚀 Changes Made
See above.
💡 How to Test
Please provide clear instructions on how reviewers can test your changes:
🤝 Related Issues
List any related issues, pull requests, or discussions:
📋 Review Guidelines
Please focus on the following while reviewing:
PR Type
Enhancement
Description
Enable recourse functionality for recoursees not in contact book
Add NostrContactStore integration to BillService
Update recourse validation to use past endorsees
Fix type conversion for PastEndorsee structure
Diagram Walkthrough
File Walkthrough
service.rs
Add NostrContactStore integration to BillService
crates/bcr-ebill-api/src/service/bill_service/service.rs
NostrContactStoreApi
dependency to BillServicebill.rs
Update recourse request validation logic
crates/bcr-ebill-wasm/src/api/bill.rs
bill.rs
Add type conversion for BillIdentParticipant
crates/bcr-ebill-wasm/src/data/bill.rs
LightBillIdentParticipantWeb conversion
test_utils.rs
Update test utilities for NostrContactStore
crates/bcr-ebill-api/src/service/bill_service/test_utils.rs
mod.rs
Update test mock expectations
crates/bcr-ebill-api/src/service/bill_service/mod.rs
events expectation in test
mod.rs
Fix PastEndorsee participant type
crates/bcr-ebill-core/src/bill/mod.rs
BillIdentParticipant
context.rs
Update context with NostrContactStore
crates/bcr-ebill-wasm/src/context.rs
parameter
clippy.toml
Increase clippy arguments threshold
clippy.toml